import request from '@/utils/request'

// 查询开票商品列表
export function listInvoice_products(query) {
  return request({
    url: '/invoice/invoice_products/list',
    method: 'get',
    params: query
  })
}

// 查询开票商品详细
export function getInvoice_products(id) {
  return request({
    url: '/invoice/invoice_products/' + id,
    method: 'get'
  })
}

// 新增开票商品
export function addInvoice_products(data) {
  return request({
    url: '/invoice/invoice_products',
    method: 'post',
    data: data
  })
}

// 修改开票商品
export function updateInvoice_products(data) {
  return request({
    url: '/invoice/invoice_products',
    method: 'put',
    data: data
  })
}

// 删除开票商品
export function delInvoice_products(id) {
  return request({
    url: '/invoice/invoice_products/' + id,
    method: 'delete'
  })
}

// 查询征税下拉框数据
export function getTaxProjectsAll() {
  return request({
    url: '/invoice/invoice_products/getTaxProjectsAll',
    method: 'get',
  })
}

// 查询计税下拉框数据
export function getTaxMethodsAll() {
  return request({
    url: '/invoice/invoice_products/getTaxMethodsAll',
    method: 'get',
  })
}